//package com.leadbank.springboot.example.configurer;
//
//import org.springframework.beans.factory.config.PropertyPlaceholderConfigurer;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.core.io.FileSystemResource;
//
///**
// * Created by hp on 2018/1/10.
// */
//@Configuration
//public class ZooKeeperPropertyPlaceholderConfigurer {
//
//    /**
//     * 自定义配置加载，方法定义为static的，保证优先加载
//     * @return
//     */
//    @Bean
//    public static PropertyPlaceholderConfigurer properties() {
//        com.leadbank.springboot.example.util.zk.ZooKeeperPropertyPlaceholderConfigurer configurer
//                = new com.leadbank.springboot.example.util.zk.ZooKeeperPropertyPlaceholderConfigurer();
//        configurer.setFileEncoding("utf-8");
//        configurer.setLocations(new FileSystemResource("C:/leadbank/config/bigdata-esquery/env.properties"));
//        return configurer;
//    }
//}
